/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.PIDOutput;

/**
 *
 * @author Carl Burger
 */
public class PIDOutputProxy implements PIDOutput {

    double pidOutput = 0.0;

    /**
     * Allocate a PIDOutputProxy object
     */

    public PIDOutputProxy () {

        // nothing to do

    }



    /**
     * Write out the PID value as seen in the PIDOutput base object.
     *
     * @param output Write out the PWM value as was found in the PIDController
     */
    public void pidWrite(double output) {
        pidOutput = output;
    }



    /**
     * Return the PID value provided by the PIDOutput base object.
     *
     * @return the PWM value as was found in the PIDController
     */
    public double getPidOutput () {
        return pidOutput;
    }

}
